﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="RSS.aspx.vb" Inherits="ArduinoPlayground.RSS" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
    Arduino Playground News Feed:
    </h2>
    
    <asp:Repeater ID="Repeater1" runat="server" DataSourceID="RSS_SqlDataSource">

    <HeaderTemplate>
    <rss version="2.0">
      <channel>
        <title> Arduino Playground </title> <br/>
        
        <description>
         News Feed from Newly Added Projects<br/>
        </description>
  </HeaderTemplate>
    
    <ItemTemplate>
        <a href = "list.aspx?Tagname= <%#Eval("Title") %>">
        <%#Eval("Title")%></a> - -  
        <%#Eval("Author")%> </a>
         <br/>
    </ItemTemplate>
</asp:Repeater>


<asp:SqlDataSource ID="RSS_SqlDataSource" runat="server" 
    ConnectionString="<%$ ConnectionStrings:ArduinoPlaygroundConnectionString %>" 
    ProviderName="<%$ ConnectionStrings:ArduinoPlaygroundConnectionString.ProviderName %>" 
    SelectCommand="SELECT [Title], [Author], [Costs] FROM [Project] ORDER BY [ID] DESC">
</asp:SqlDataSource>
</asp:Content>
